package com.se.nju.rtvps.peerManagement;

import net.jxta.peer.PeerID;
import java.net.URI;

public class PeerManagement {
	public static PeerManagement instance;
	private PeerID rootID;
	private static Tree peerTree;
	
	
	public  PeerManagement(){
		rootID = PeerID.create(URI.create(""));//set server peer id
		peerTree = new Tree(rootID);//value:rootID

	}
	
	public static boolean addToGroup(PeerID pId){
		return peerTree.addToGroup(pId);
	}
	
	public static boolean removeFromGroup(PeerID pId){
		return peerTree.removeFromGroup(pId);
	}
	
	
}
